package com.cac.demo.newCode.sorting.controller;

import com.cac.demo.newCode.sorting.dto.LocalLogDTO;
import com.cac.demo.newCode.sorting.service.LocalLogService;
import com.cac.demo.util.adapter.ResponseMsg;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
@Slf4j
@RestController
@RequestMapping("/localLog")
@Api(tags = "业务接口日志")
public class LocalLogController {
    @Resource
    LocalLogService localLogService;
    @PostMapping("/getLogPage")
    @ApiOperation(value = "查看业务接口日志")
    public ResponseMsg<Object> getLogPage(@RequestBody LocalLogDTO localLogDTO){
        return localLogService.getLogPage(localLogDTO);
    }
}
